#include "sprite.h"
#include "paddle.h"

#ifndef _BALL_H_
	#define _BALL_H_

class Ball : public Sprite
{

	public:
		// general attributes
		char* filename;		// contains the object's filename
		SDL_Surface* surf;		// picture source
		
		// coordinate attributes
		int height;				// object height
		int width;				// object width
		Point location;			// object's coordinate location
		Speed speed;			// object speed

		Ball();

		/* Updates all game states and object values */
		void update(Paddle *p1, Paddle *p2);						// used for movement
		void update(int xDir, int yDir);	// used for direction


		/* Renders all drawable game objects to the screen */
		void draw(SDL_Surface* Display);

		/* Detect whether if the object collided with another object */
		bool checkCollision(Paddle* p);
};
#endif
